The order of the arguments to 'seq-position' was wrong, and it did not
compare the correct values. (Bug#69664)
(error "Can't find the old object"))
(setcar (cdr objects) object))
;; Then update the cache...
- (let* ((line-number (seq-position old-object (car (vtable--cache table))))
+ (let* ((line-number (seq-position (car (vtable--cache table)) old-object
+ (lambda (a b)
+ (equal (car a) b))))
(line (elt (car (vtable--cache table)) line-number)))
(unless line
(error "Can't find cached object"))